package Package.Example.Example_2;

public class Example_2 {
    private static String s;
    public static final void Example_2(){
        s="ChangCun";
        UseFly(new Flyable() {
            @Override
            public void fly(String s) {
                System.out.println(s);
                System.out.println("aaaaaaaaaaaaaa");
            }
        });
        UseFly((String s)->{
            System.out.println(s);
            System.out.println("__________________");
        });
    }
    private static void UseFly(Flyable f){
        f.fly(s);
    }
}
